#!/usr/bin/env python
# encoding: utf-8;

# 系统基础字典下载的服务器路径
REGISTRY_URL = 'https://gitee.com/s2c/registry/releases/download/v1/'

# 数据库名称
DB_NAME = 's2c.db'

# 基础数据类型
SYS_BASE = 'base'

# 当前新增数据类型
SYS_CURRENT = 'current'

# docker copy使用的使用的临时路径
DOCKER_PATH_TMP = './lib/'

# 系统迁移版本 选择
MIGRATE_MAPPING = {
    'centos_8': ['openEuler_22.03', 'centos_8'],
    'Darwin_22.1.0': ['openEuler_22.03'],
}

# 目标系统版本
TARGET_SYSTEM_OPTION = [
    {
        'value': 'openEuler_22.03_x86_64',
        'label': 'openEuler_22.03_x86_64'
    },
    {
        'value': 'centos_8_x86_64',
        'label': 'centos_8_x86_64'
    }
]

# 列表分隔符
FIELD_DELIMITER = " | "

# 指定扫描需要过滤的路径
SCAN_FILTER_DIR = [
    r'^/boot/*',
    r'^/dev/*',
    r'^/proc/*',
    r'^/run/*',
    r'^/usr/share/usb_modeswitch/*',
    r'^/usr/share/man/*',
    r'^/usr/src/linux*',
    r'^/var/cache/*',
    r'^/var/lib/selinux/*',
    r'^/var/log/*',
    r'^/sys/*',
    r'^/root/workspace/*',
    r'^/var/lib/sss/*',
    r'^/etc/shadow*',
    r'^/var/lib/NetworkManager/timestamps',
    # r'^/var/lib/nginx/tmp/*',
    r'^/var/lib/docker/*',
    r'^/tmp/*',
    r's2c',
]

PROCESS_TAB = 'PROCESS_TAB'
FILE_TAB = 'FILE_TAB'
